-- CALC_SUMMON_ACCURACY

-- 计算召唤兽当前命中
-- @param summon    召唤兽
return function(summon)
    local accuracy = summon:query("accuracy") or 0;
    local classId = summon.class_id;

    -- 如果要用玩家的命中
    if SummonM.query(classId, "dbase")["user_accuracy"] == 1 then
        accuracy = FormulaM.invoke("CALC_USER_ACCURACY", ME.user);
    end

    -- 2. 绝对值加成
    local propId = PropM.getPropId("attrib2");
    local prop = PropM.combine(summon, propId, "accuracy");
    accuracy = PropM.apply(prop, accuracy);

    return accuracy;
end
